<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 10300
  Date: 2021/10/27
  Time: 8:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加爱车</title>
    <link type="text/css" rel="stylesheet" href="fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
    <link type="text/css" rel="stylesheet" href="css/datepicker.css"/>
</head>
<body>
<div class="main_box">
    <div class="cont_box editpro_box">
        <form action="${pageContext.request.contextPath}/addCar" method="get">

            <ul class="addpro_box adduser_box">


                    <input type="hidden" value="${sessionScope.car[0].vid}" name="vid" required data-rule-isCarNo="true">


                <li>
                    <label>车牌号：</label>
                    <input type="text" placeholder="请输入车牌号码" name="bus_id" required data-rule-isCarNo="true" data-msg-required="车牌号码不能为空"/>
                </li>
                <li>
                    <label>行驶里程：</label>
                    <input type="text" placeholder="请输入行驶里程" name="mileage" required data-rule-mileage="true" data-msg-required="行驶里程不能为空"/>
                </li>
                <li>
                    <label>保险到期日：</label>
                    <input type="date" class="choose_date" placeholder="请选择保险到期日" name="safe" readonly required data-msg-required="保险到期日不能为空"/>
                </li>
                <li>
                    <label>车品牌型号：</label>
                    <div class="select_group" id="carmodel">
                        <select name="brand" class="carbrand" required data-msg-required="车品牌型号不能为空">
                           <c:forEach items="${sessionScope.all1}" var="a1">
                        <option value="${a1.brand}">${a1.brand}</option></c:forEach>
                        </select>
                        <select name="model" class="carmodela" required data-msg-required="车品牌型号不能为空">
                            <c:forEach items="${sessionScope.all1}" var="a2">
                                <option value="${a2.model}">${a2.model}</option></c:forEach>
                        </select>
                        <select name="series" class="carmodelb" required data-msg-required="车品牌型号不能为空">
                                <c:forEach items="${sessionScope.all1}" var="a3">
                                    <option value="${a3.series}">${a3.series}</option></c:forEach>
                        </select>
                        <select name="vin_id" class="carmodelc" required data-msg-required="车品牌型号不能为空">
                                    <c:forEach items="${sessionScope.all1}" var="a4">
                                        <option value="${a4.vin_id}">${a4.vin_id}</option></c:forEach>
                        </select>
                    </div>
                </li>
            </ul>
            <div class="probtn_box clearfix">
                <input type="submit" value="添加爱车" class="btn blue_btn submit"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="js/jquery-2.2.1.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/jquery.form.min.js"></script>
<script src="js/jquery.cxselect.min.js"></script>
<script src="js/other1.js"></script>
<%--<script>--%>
<%--    $(function(){--%>
<%--        $("body").other({formId:"#user_form",formUrl:"#"});//formUrl 表单请求地址,linkHref 请求成功后跳转地址，此页面不需要，已删除--%>
<%--        $("#carmodel").cxSelect({--%>
<%--            url: "js/carModel.json",--%>
<%--            selects: ["carbrand", "carmodela", "carmodelb", "carmodelc"],--%>
<%--            emptyStyle: "none"--%>
<%--        });--%>
<%--    });--%>
<%--</script>--%>
</body>
</html>
